package game.adm.dao.dto;

import game.web.base.Constants;

public final class BetDTO extends BaseDTO{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4152468304797019253L;
	private String betid = "";
	private String userid = "";
	private int betmethod = 0;
	private String betmethodstr = "";
	private String types = "";
	private String typesstr = "";
	private String gametype = "";
	private String bettype = "";
	private double betmoney = 0.00;
	private double bonus = 0.00;
	private String betstr = "";
	private String betstrs = "";
	private int betcount = 0;
	private double singlemoney = 0.00;
	private String betno = "";
	private String opentime = "";
	private double returnpos = 0.00;
	private double returnmoney = 0.00;
	private int betflag = 2;
	private String betflagstr = "";
	private String createtime ="";
	private String updatetime ="";
	private String createip = "";
	private String updateip = "";
	private String username = "";
	private String gametypename = "";
	private String bettypename = "";

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(String updatetime) {
		this.updatetime = updatetime;
	}

	public String getCreateip() {
		return createip;
	}

	public void setCreateip(String createip) {
		this.createip = createip;
	}

	public String getUpdateip() {
		return updateip;
	}

	public void setUpdateip(String updateip) {
		this.updateip = updateip;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGametype() {
		return gametype;
	}

	public void setGametype(String gametype) {
		this.gametype = gametype;
	}

	public String getBettype() {
		return bettype;
	}

	public void setBettype(String bettype) {
		this.bettype = bettype;
	}

	public double getBonus() {
		return bonus;
	}

	public void setBonus(double bonus) {
		this.bonus = bonus;
	}

	public double getReturnpos() {
		return returnpos;
	}

	public void setReturnpos(double returnpos) {
		this.returnpos = returnpos;
	}

	public String getGametypename() {
		return gametypename;
	}

	public void setGametypename(String gametypename) {
		this.gametypename = gametypename;
	}

	public String getBettypename() {
		return bettypename;
	}

	public void setBettypename(String bettypename) {
		this.bettypename = bettypename;
	}

	public String getBetid() {
		return betid;
	}

	public void setBetid(String betid) {
		this.betid = betid;
	}

	public int getBetmethod() {
		return betmethod;
	}

	public void setBetmethod(int betmethod) {
		this.betmethod = betmethod;
		if(betmethod==0)
			this.setBetmethodstr(Constants.WEB_NAME);
		else if(betmethod==1)
			this.setBetmethodstr(Constants.MOBILE_NAME);
	}

	public String getBetmethodstr() {
		return betmethodstr;
	}

	public void setBetmethodstr(String betmethodstr) {
		this.betmethodstr = betmethodstr;
	}

	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
		if("A".equals(types)){
			this.setTypesstr(Constants.SHISHICAI_NAME);
		}else if("B".equals(types)){
			this.setTypesstr(Constants.KENO_NAME);
		}else if("C".equals(types)){
			this.setTypesstr(Constants.ELEVEN_SELECT_FIVE_NAME);
		}
	}

	public String getTypesstr() {
		return typesstr;
	}

	public void setTypesstr(String typesstr) {
		this.typesstr = typesstr;
	}

	public double getBetmoney() {
		return betmoney;
	}

	public void setBetmoney(double betmoney) {
		this.betmoney = betmoney;
	}

	public String getBetstr() {
		return betstr;
	}

	public void setBetstr(String betstr) {
		this.betstr = betstr;
	}

	public String getBetstrs() {
		return betstrs;
	}

	public void setBetstrs(String betstrs) {
		this.betstrs = betstrs;
	}

	public int getBetcount() {
		return betcount;
	}

	public void setBetcount(int betcount) {
		this.betcount = betcount;
	}

	public double getSinglemoney() {
		return singlemoney;
	}

	public void setSinglemoney(double singlemoney) {
		this.singlemoney = singlemoney;
	}

	public String getBetno() {
		return betno;
	}

	public void setBetno(String betno) {
		this.betno = betno;
	}

	public String getOpentime() {
		return opentime;
	}

	public void setOpentime(String opentime) {
		this.opentime = opentime;
	}

	public double getReturnmoney() {
		return returnmoney;
	}

	public void setReturnmoney(double returnmoney) {
		this.returnmoney = returnmoney;
	}

	public int getBetflag() {
		return betflag;
	}

	public void setBetflag(int betflag) {
		this.betflag = betflag;
		if(0 == betflag){
			this.setBetflagstr(Constants.NOT_DUIJIANG_NAME);
		}else if(1 == betflag){
			this.setBetflagstr(Constants.ZHONGJIANG_NAME);
		}else if(2 == betflag){
			this.setBetflagstr(Constants.NOT_ZHONGJIANG_NAME);
		}else if(3 == betflag){
			this.setBetflagstr(Constants.UNKOWN_DATA_NAME);
		}
	}

	public String getBetflagstr() {
		return betflagstr;
	}

	public void setBetflagstr(String betflagstr) {
		this.betflagstr = betflagstr;
	}
	
	
}
